<script lang="ts" setup>
import {
    Document,
    Menu as IconMenu,
    Location,
    Setting,
} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
</script>

<template>
    <el-row class="tac">
        <el-col :span="24">
            <!-- <el-text class="title" text-color="#fff">测试平台</el-text> -->
            <el-menu default-active="2" :router=true class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" text-color="#fff">
                <el-menu-item index="/dashboard" >
                    <el-icon>
                        <DataBoard />
                    </el-icon>
                    <span>数据展示</span>
                </el-menu-item>
                <el-menu-item index="/interfaceManage">
                    <el-icon><icon-menu /></el-icon>
                    <span>接口管理</span>
                </el-menu-item>
                <el-menu-item index="/caseManage">
                    <el-icon>
                        <document />
                    </el-icon>
                    <span>用例管理</span>
                </el-menu-item>
                <el-menu-item index="/suiteManage">
                    <el-icon>
                        <Management />
                    </el-icon>
                    <span>测试套件</span>
                </el-menu-item>
                <el-menu-item index="/report">
                    <el-icon>
                        <Eleme />
                    </el-icon>
                    <span>测试报告</span>
                </el-menu-item>
                <el-menu-item index="sysManage">
                    <el-icon>
                        <setting />
                    </el-icon>
                    <span>系统管理</span>
                </el-menu-item>
            </el-menu>
        </el-col>
    </el-row>
</template>

<style lang="scss" scoped>
.tac {
    // color:white;
    padding: 0;
    // min-height: 500px;
    height: 67vw;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    color:rgb(255, 255, 255);
}

.el-menu-vertical-demo {
    background-color: #1f2d3d;
    // min-height: 1000px;
    height: 100%;
;
}
</style>